The deployment of legacy code for RxRefill requires the following steps:

1. Create a new DataSource in the AdminConsole with JNDI Name 

         jdbc/gov.va.med.term.access.Database. 
         
   This data source must point to a database with the STDDATA database schema 
   (i.e. the STD_* table) used by the legacy code that performs the communication 
   with the different Vista facilities.



2. Folder 

        mhv-rx-refill-service/src/main/resources/resources 
        
   must be add to the classpath. This folder contains e.g. the Spring Framework 
   configuration information for the legacy code. 
   
   This can be done as follows:
   - Copy this folder into some folder in the WebLogic mhv domain 
     E.g. %DOMAIN_HOME%/config/legacy/rxrefill
   - Add the location of this folder to the external pre classpath
     E.g. Add the following line to setDomainEnv.cmd 
          set EXT_PRE_CLASSPATH=%DOMAIN_HOME%\config\legacy\rxrefill



3. The file mhv-rx-refill-service/src/main/resources/resources/mhvDomainConfig.xml 
   must be specified as a parameter to the JVM as follows:

      -Dmhv.config.filename=%DOMAIN_HOME%\config\mhvDomainConfig.xml



	